package com.bjwl.service;

import com.bjwl.pojo.Staff;
import com.bjwl.pojo.vo.AdminOrdersQueryVo;
import com.bjwl.utils.PageBean;

import java.util.List;

/**
 * @Author: dzx
 * @Date:Create：in 2020/4/10 9:40
 * @Description:    员工逻辑控制层
 * @Modified By：
 * @Version: 1.0
 */
public interface StaffService {
    /**
     * 根据分店id查询员工
     * @param bssign
     */
    public PageBean<Staff> findStaffByBstoreid(Integer pageNum, Integer bssign,Integer staffid,String staffvalue,String wstarttime,String wendtime);
    /**
     * 根据当前sid查询staff信息
     * @param sid
     * @return
     */
    public Staff updateShowStaff(Integer sid);

    /**
     * 根据sid修改当前信息
     * @param staff
     */
    void updateStaffByid(Staff staff);



    PageBean<Staff> findAllStaff(AdminOrdersQueryVo adminOrdersQueryVo);

    //添加staff
    void addStaff(Staff staff);

    /**
     * 根据sid删除此条数据
     * @param sid
     */
    void deleteStaff(Integer sid);
    Integer findAllStaffTotalRecord();
    Integer staffCount(Integer bssign);

    PageBean<Staff> findStaffByBstoreidSettle(Integer pageNum, Integer bssign, Integer card,String staffname);


    //根据card(员工工号)验证员工是否存在
    Staff finStaffByCard(Integer bssign, String staffname);

    Integer findAllStaffByCard(Integer card);

    List<Staff> findAllStaffSettle(Integer bssign);

    /*PageBean<Staff> findStaffBySettle(Integer pageNum, Integer bssign,String staffname,Integer card);*/
    Staff finStaffByCardS(Integer bssign, String card);
}
